﻿namespace _01.策略模式.Strategies
{
    /// <summary>
    /// 无折扣策略
    /// </summary>
    public class NullDiscountSrategy : IDiscountStrategy
    {
        #region 01.产品适用折扣方法 —— decimal ApplyProductDiscount(decimal productPrice)
        /// <summary>
        /// 产品适用折扣方法
        /// </summary>
        /// <param name="productPrice">产品价格</param>
        /// <returns>折扣价</returns>
        public decimal ApplyProductDiscount(decimal productPrice)
        {
            return productPrice;
        }
        #endregion

        #region 02.订单适用折扣方法 —— decimal ApplyOrderDiscount(decimal orderAmount)
        /// <summary>
        /// 订单适用折扣方法
        /// </summary>
        /// <param name="orderAmount">订单金额</param>
        /// <returns>结算价</returns>
        public decimal ApplyOrderDiscount(decimal orderAmount)
        {
            return orderAmount;
        }
        #endregion
    }
}
